package com.csun.cmny.provider.model.vo.app;

import com.csun.cmny.provider.model.entity.TimeRange;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
public class AppSingleDaySleepDataVo {

    /*
     * 睡眠时长
     * */
    private double countSleepTime;

    /*
     * 在床时长
     * */
    private double countInBedTime;

    /*
     * 翻身次数
     * */
    private int countActionTimes;

    /*
     * 定义夜间入睡时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date fallAsleepTime;

    /*
     * 定义早晨起床时间
     * */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date getBedTime;

    /*
     * 定义睡眠状态map key为睡眠状态，value为时间段
     * */
    private List<AppSleepRangeVo> appSleepRangeVos;

    /*
     * 睡眠得分
     * */
    private Integer sleepGrade;

}